package com.ruyuan.seckilling.common.message;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhonghuashishan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderCancelMessage {
    private Long sequence;

    private Long activityId;

    private Long userId;

    private Long skuId;

    private Integer count;

    public String toJsonString() {
        return JSON.toJSONString(this);
    }
}
